var e = getApp();

Page({
    data: {
        pro_title: e.pro_title,
        server: e.server,
        serverUrl: "http://www.ylhzzy.top:8828/public",
        cates: []
    },
    onLoad: function(t) {
        var r = this;
        e.request({
            url: e.rserver + "/productApi/getProductCatList",
            method: "POST",
            data: {
                token: e.token
            },
            header: {
                "content-type": "application/x-www-form-urlencoded"
            },
            success: function(e) {
                r.setData({
                    cates: e.data.result.productCats || []
                });
            }
        });
    },
    toSubSeri: function(e) {
        var t = e.currentTarget.dataset.id;
        console.log("e", e);
        console.log("11111111111111#####################");
        console.log(typeof(t));
        wx.navigateTo({
            url: "/pages/products/products?id=" + t
        });
    },
    toSearch: function() {
        wx.navigateTo({
            url: "/pages/products/search/search"
        });
    },
    onShareAppMessage: function() {}
});